package com.bjdd.jdy.ui.orderDetail;

import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.entity.OrderBean;
import com.bjdd.jdy.util.Api;
import com.bjdd.jdy.util.RxSchedulers;

import rx.Observable;

/**
 * Created by Administrator on 2017/5/3.
 */

public class OrderDetailModel implements OrderDetailContract.Model {
    @Override
    public Observable<BaseResult<OrderBean>> getOrderInfo(String token, String orderNo) {
        return Api.getInstance().service
                .orderDetail(token,orderNo)
                .compose(RxSchedulers.io_main());
    }
}
